#ifndef STUDENTFORM_H
#define STUDENTFORM_H

#include <QWidget>
#include <QSqlQueryModel>

namespace Ui {
    class studentForm;
}

class studentForm : public QWidget
{
    Q_OBJECT

public:
    explicit studentForm(QWidget *parent = 0);
    ~studentForm();
    void getFaculty();

protected:
    int getIdFaculty(const QString &facName);
    void getStudentName();
    int getStudentID();

private:
    Ui::studentForm *ui;
    QSqlQueryModel *groupModel;
    QSqlQueryModel *facultyModel;

public slots:
    void ButtClick();
    void getGroup();
};

#endif // STUDENTFORM_H
